<!--智慧消防V1.0-info页面-->
<template>
    <div class="app-container">
        <el-row :gutter="10">
            <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
                <div style="text-align: center;margin-bottom: 30px">
                    位置信息-{{placeInfo.name}}-详情信息
                </div>
                <el-form :model="placeInfo" ref="placeInfo"  label-width="100px">
                    <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8">
                        <el-form-item label="位置名称" prop="name">
                            {{placeInfo.name}}
                        </el-form-item>
                    </el-col>
                    <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8">
                        <el-form-item label="位置编码"  prop="code">
                            {{placeInfo.code}}
                        </el-form-item>
                    </el-col>
                    <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8">
                        <el-form-item label="道路信息 " prop="road">
                            {{placeInfo.road}}
                        </el-form-item>
                    </el-col>
                    <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8">
                        <el-form-item label="所属建筑" prop="buildName">
                            {{placeInfo.buildName}}
                        </el-form-item>
                    </el-col>
                    <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8">
                        <el-form-item label="所属企业" prop="enterpriseName">
                            {{placeInfo.enterpriseName}}
                        </el-form-item>
                    </el-col>
                    <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8">
                        <el-form-item label="楼层" prop="floor">
                            {{placeInfo.floor}}
                        </el-form-item>
                    </el-col>
                    <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8">
                        <el-form-item label="详细地址" prop="location">
                            {{placeInfo.location}}
                        </el-form-item>
                    </el-col>
                </el-form>
            </el-col>
        </el-row>
    </div>
</template>

<script>
import {getInPlaceInfo} from "@/api/enterprise";

export default {
    name: "info",
    data(){
        return{
            placeInfo:{}
        }
    },
    created() {
        this.getPlaceInfo()
    },
    methods:{
        getPlaceInfo(){
            getInPlaceInfo({ucId:this.$route.params.ucId}).then(res=>{
                this.placeInfo = res.data
                this.$notify.success({
                    title: '成功',
                    message: "获取位置信息成功"
                })
            }).catch(error=>{
                this.$notify.error({
                    title: '失败',
                    message: error.message
                })
            })
        }
    }
}
</script>

<style scoped>

</style>